package org.tang.choose;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;

public class ChooseStock {

	public static void main(String[] args) throws Exception {
		FileReader reader = new FileReader(new File("E:\\data.txt"));
		BufferedReader buffer = new BufferedReader(reader);
		String line = "";
		line = buffer.readLine();
		String array[] = null;
		int count = 0;
		for(;line!=null;){
			//System.out.println(line);
			array = line.split(" ");
			if(!array[15].equals("-")&&!array[17].equals("-")&&!array[19].equals("-")&&!array[16].equals("-")){		
				try{
					double t11 = Double.parseDouble(array[14]);
					double t12 = Double.parseDouble(array[15]);
					double t13 = Double.parseDouble(array[17]);
					double t14 = Double.parseDouble(array[19]);
					double p12 = Double.parseDouble(array[16]);
					if(t11*1.25 < t12 && t12*1.25 < t13 && t13*1.25 < t14 ){
						System.out.println(line);
						count++;
					}
				}catch(Exception e){
					System.out.println(line);
					throw e;
				}
				
			}
			
			line = buffer.readLine();
		}
		System.out.println("count = " + count);
	}

}
